var vm_gonggaoViewDetail = new Vue({
    el: "#app",
    data(){
        return {
            gonggaoid: $("#gonggaoid").val(),
            gonggao: {},
            fujianname:"",
            isfujianexit:false
        }
    },

    created : function(){
        var _this = this
        _this.bindgonggao()
    },
    methods : {
        bindgonggao: function (){
            var _this = this;
            $.get("/system/gonggaoView/detailone",{gonggaoid: _this.gonggaoid},function (ppData){
                console.log(ppData)
                if (ppData != null) {
                    var data = ppData;
                    _this.gonggao = data;
                    if(data.fujianurl!=null) {
                        var index1 = data.fujianurl.lastIndexOf(".");
                        var index2 = data.fujianurl.lastIndexOf("/");
                        _this.fujianname = data.fujianurl.substring(index2 + 1, index1)
                        _this.isfujianexit = true
                    }
                }
            },"json")
        },


    }
})